package com.eagle.videoboot.service;

import com.eagle.videoboot.domain.entity.Comments;
import com.eagle.videoboot.domain.entity.Videos;
import com.baomidou.mybatisplus.extension.service.IService;
import com.eagle.videoboot.utils.PagedResult;

import java.util.List;

/**
 * <p>
 * 视频信息表 服务类
 * </p>
 *
 * @author eagle
 * @since 2020-04-22
 */
public interface IVideosService extends IService<Videos> {
	PagedResult getAllVideos(Videos video, Integer isSaveRecord,
									Integer pageNo, Integer pageSize);
	List<String> getHotwords();

	PagedResult queryMyLikeVideos(String userId, Integer page, Integer pageSize);
	PagedResult queryMyFollowVideos(String userId, Integer page, Integer pageSize);

	void saveComment(Comments comment);

	PagedResult getAllComments(String videoId, Integer page, Integer pageSize);

}
